<template>
    <j-modal title="选择内容库"
             width="60%"
             :visible.sync="visible"
             @ok="handleOk">
        <content-bank-list-model :is-select="true" @selectChange="contentInfo = $event">
        </content-bank-list-model>
    </j-modal>
</template>

<script>
  import ContentBankListModel from '../../../components/xinke/ContentBankList'

  export default {
    name: 'ContentModel',
    components: { ContentBankListModel },
    data() {
      return {
        visible: false,
        contentInfo:{}
      }
    },
    methods: {
      show(){
        this.visible = true;
      },
      handleOk() {
        this.$emit('modelOk',this.contentInfo);
      }
    }
  }
</script>

<style scoped>

</style>
